#!/bin/bash
# 测试数据库update操作

cd /home/ydw/workspaces/FIN/akshare-option-rs

# 清空数据库
rm -rf data/akoption.db

# 运行一次测试，只看sse_list
timeout 10 ./target/release/akoption-scheduler --run-once 2>&1 | grep -A 5 "sse_list"

echo ""
echo "=== 现在测试expire_day ==="

# 再次运行，看expire_day的详细错误
RUST_BACKTRACE=1 timeout 15 ./target/release/akoption-scheduler --run-once 2>&1 | grep -A 10 "expire_day"
